05. Building Java Applications
Building Java Applications
ND079 JPND C3 L1 A04 Building Java Applications V2
Building Java Applications
After compiling a Java application into .class files, you can package them together to mark a variety of different types of archives. These archives are designed to run in different environments.
Building Java Application
Java Archive Files (JAR)
A **JAR **file is just a zip file full of java bytecode, in the form of a bunch of .class files. It also contains a directory called META-INF, which holds a file containing program metadata, called MANIFEST.MF.
JAR
Web Archive Files (WAR)
A WAR is designed to be deployed to a Java Web Application Server. It contains all the files necessary for the application server to host your web application.
WAR
Android Package Files (APK)
An APK another variation of a JAR that also contains a number of files that specifically describe how this application should run on Android.
APK
Demo
ND079 JPND C3 L1 A05 Demo Building Java Applications V3